package com.lsj.spring.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.lsj.spring.model.TUser;
import com.lsj.spring.mapper.TUserMapper;
/**
 * @author  Lsj
 * @date  2021/6/26 16:11
 * @version 1.0
 */
public interface TUserService{
    /**
     * 按主键删除
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 插入记录到表
     *
     * @param record the record
     * @return insert count
     */
    int insert(TUser record);

    /**
     * 按主键选择
     *
     * @param id primary key
     * @return object by primary key
     */
    TUser selectByPrimaryKey(Integer id);

    /**
     * 更新记录
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(TUser record);

}
